package com.box.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.box.entity.DbOther;
import com.box.entity.DbOtherExample;
import com.box.entity.DbOtherExample.Criteria;
import com.box.mapper.DbOtherMapper;
import com.box.service.OtherService;

/**   
*    
* 项目名称：MyBox   
* 类名称：OtherServiceImpl   
* 类描述：   
* 创建人：君无邪   
* 创建时间：2019年10月7日 下午12:58:23   
* 修改人：君无邪 
* 修改时间：2019年10月7日 下午12:58:23   
* 修改备注：  https://www.java214.com 
* @version    
*    
*/ 
@Service
public class OtherServiceImpl implements OtherService {
	
	@Autowired
	private DbOtherMapper otherMapper;

	public DbOther selRegister_TimeByUid(Integer uid) {
		// TODO Auto-generated method stub
		DbOtherExample example = new DbOtherExample();
		Criteria createCriteria = example.createCriteria();
		createCriteria.andUidEqualTo(uid);
		List<DbOther> userOther = otherMapper.selectByExample(example);
		return userOther.get(0);
	}

	public Integer insertOther(DbOther other) {
		// TODO Auto-generated method stub
		
		return otherMapper.insert(other);
	}

}
